<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Lead;
use App\User;

Route::any('/',function (\App\Repository\WechatWork $wechatWork){

});
/*Route::get('luodiye/{id}',function (Illuminate\Http\Request  $request,\App\Repository\ToutiaoRepository $toutiaoRepository){
    $request->input('clickid');
   $aa= $toutiaoRepository->callback('form',$request->input('clickid'));//表单
    var_dump($aa,'表单');
   $bb= $toutiaoRepository->callback('work_wechat_added',$request->input('clickid'));//添加微信
    var_dump($bb,'添加微信');
   $cc= $toutiaoRepository->callback('customer_effective',$request->input('clickid'));//有效获客
    var_dump($cc,'有效获客');
   $dd= $toutiaoRepository->callback('consult_effective',$request->input('clickid'));//有效咨询
    var_dump($dd,'有效喜讯');

})->name('luodiye');*/
Route::get('luodiye/{id}','LuodiyeController@luodiye');
Route::get('createOrder','IndexController@createOrder');
Route::get('wechat','IndexController@wechat');
Route::get('wechatCall','IndexController@wechatCall')->name('wechatCall');
Route::get('url/{url}',function ($url){
    return redirect()->to(base64_decode($url));
});
Route::any('ordersCaptureRequest','IndexController@ordersCaptureRequest');
